import request from '@/utils/request';

// 获取资讯详情
export function getNewsDetailApi(obj) {
  return request({
    url: '/v1/selfMedia/info',
    method: 'get',
    data: obj
  });
}

// 阀值设置
export function setRangeApi(obj) {
  return request({
    url: '/v1/selfMedia/range/set',
    method: 'post',
    data: obj
  });
}

// 阀值获取
export function getRangeApi() {
  return request({
    url: '/v1/selfMedia/range/get',
    method: 'get'
  });
}

// 设置自媒体资讯状态
export function changeStatusApi(obj) {
  return request({
    url: '/v1/selfMedia/changeStatus',
    method: 'post',
    data: obj
  });
}

// 获取列表
export function getlistApi(obj) {
  return request({
    url: '/v1/selfMedia/abnormal/list',
    method: 'get',
    data: obj
  });
}

// 获取IP重复访问量列表
export function getIpViewCountApi(obj) {
  return request({
    url: '/v1/selfMedia/ipViewCount',
    method: 'get',
    data: obj
  });
}

// 获取设备访问重复量列表
export function getDeviceViewCountApi(obj) {
  return request({
    url: '/v1/selfMedia/deviceViewCount',
    method: 'get',
    data: obj
  });
}
// 获取账户异常列表
export function getAbnormalMemberCountApi(obj) {
  return request({
    url: '/v1/selfMedia/abnormalMemberCount',
    method: 'get',
    data: obj
  });
}
